> ## Documentation Index
> Fetch the complete documentation index at: https://sequence-0fb8d9e6-relayer_docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Embedded WalletのStytch設定

> Embedded WalletインスタンスでStytchクライアントを設定する方法を説明します。StytchダッシュボードでPublic Tokenを作成・取得する手順に従ってください。

Embedded WalletインスタンスにStytch認証を統合するには、[Stytch Dashboard](https://stytch.com/dashboard)でStytchアプリケーションを設定し、[Sequence Builder](https://sequence.build/)でEmbedded Walletを設定します。以下の手順から始めてください：

<Warning>
  Stytch認証は現在アーリーアクセス中です。有効化するには、[https://sequence.build/earlyaccess](https://sequence.build/earlyaccess) にアクセスし、機能をオンにしてください。
</Warning>

<Steps>
  <Step title="サインアップ / サインイン">
    まず[サインインページ](https://stytch.com/dashboard)にアクセスします：
  </Step>

  <Step title="プロジェクトの作成">
    サインイン後、プロジェクト一覧のドロップダウンから`Create new project`を選択します：

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_new_project.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=73d6bcea5841940b92892b49733e3e09" alt="プロジェクトの作成" width="1556" height="677" data-path="images/builder/stytch_create_new_project.png" />
    </Frame>

    次に`CONSUMER AUTHENTICATION`を選択します：

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_project.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=1f7e378079be56303fc0e994822a71f8" alt="新規プロジェクト作成" width="1556" height="677" data-path="images/builder/stytch_create_project.png" />
    </Frame>

    最後に`Create project`を選択します。
  </Step>

  <Step title="Stytch Project IDとStytch Public Tokenの取得">
    `Home`の最初の画面下部から`Stytch Project ID`と`Stytch Public Token`をコピーし、安全な場所に保存してください。

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_obtain_keys.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=ddd4bfbe0b3ee3b69a8132568cae3317" alt="Project IDとStytch Public Tokenの取得" width="1398" height="659" data-path="images/builder/stytch_obtain_keys.png" />
    </Frame>
  </Step>

  <Step title="リダイレクトURLの更新">
    ローカル開発の場合は`http://localhost:4444/authenticate`をご利用ください。

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_new_redirect_uri.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=f2c27ffb8527ca0dd66833d797353ff4" alt="リダイレクトURLの更新" width="1616" height="763" data-path="images/builder/stytch_create_new_redirect_uri.png" />
    </Frame>

    `Login`と`Register`を有効にし、`Set as default`を選択して`Confirm`をクリックします：

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_create_new_redirect_uri_confirm.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=ab9804e8f1a72cd632757f08b34856ab" alt="Project IDの取得" width="1536" height="705" data-path="images/builder/stytch_create_new_redirect_uri_confirm.png" />
    </Frame>
  </Step>

  <Step title="SDKの許可オリジンを更新">
    ローカル開発の場合、ご自身の開発用URL（例：`http://localhost:4444`）が正しく設定されていることを確認してください。

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/zO7SusnFQlIZVQEd/images/builder/stytch_add_url_to_sdk.png?fit=max&auto=format&n=zO7SusnFQlIZVQEd&q=85&s=376f3c18e10eda9dac5594db5697bac0" alt="SDK用URLの更新" width="1750" height="728" data-path="images/builder/stytch_add_url_to_sdk.png" />
    </Frame>
  </Step>

  <Step title="Sequence Builderでの設定">
    次に、Sequence Builderでプロジェクトにアクセスし、Embedded Wallet設定セクションでログインプロバイダーを追加してStytch認証を有効にします：

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/PqKQDagG3Qb-h8VG/images/builder/builder_stytch_add_provider.png?fit=max&auto=format&n=PqKQDagG3Qb-h8VG&q=85&s=b4a9a6ea614419c377018323471ded4b" alt="ログインプロバイダーを追加" width="1880" height="722" data-path="images/builder/builder_stytch_add_provider.png" />
    </Frame>

    最後に、ドロップダウンから`Stytch`を選択します。

    <Frame>
      <img src="https://mintcdn.com/sequence-0fb8d9e6-relayer_docs/PqKQDagG3Qb-h8VG/images/builder/builder_stytch_select_provider.png?fit=max&auto=format&n=PqKQDagG3Qb-h8VG&q=85&s=738d58c9dd755900e4865761712d91d1" alt="Stytchを選択" width="2459" height="1106" data-path="images/builder/builder_stytch_select_provider.png" />
    </Frame>

    `Stytch Project ID`を入力し、`Save changes`を選択してから、紫色の`Update configuration`を選択し、パスワードを入力して設定を更新します。
  </Step>
</Steps>
